package com.nativetalk.bean.member;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * 用户信息(注册)
 * @author lizhun
 *
 */
public class TdNtMemberRegister{
	private int memb_id;
	@NotNull(message = "{PHONE.REGEXP}")
//	@Pattern(regexp = "^1[3|5|7|8][0-9]\\d{8}$", message = "{PHONE.REGEXP}")
	private String memb_phone;//用户注册手机号码 (11)
	@NotNull(message = "{PASSWORD.REGEXP}")
    @Pattern(regexp = "^[0-9a-zA-Z]{5,20}$", message = "{PASSWORD.REGEXP}")
    private String memb_password;//用户登录密码 (64)  格式：5-20位
    @NotNull(message = "{CODE.REGEXP}")
	private String code;//验证码
	private String openId;
	private String memb_phone_area;
	private String memb_register_month;
	private String memb_islock;
	private String token;
	private String memb_invite_code;
	private String memb_head_portrait;
    private String invite_code;
	private BigDecimal memb_balance;
	private String memb_sex;
	private Timestamp memb_birthday;
	private String memb_name;
	public BigDecimal getMemb_balance() {
		return memb_balance;
	}

	private String equ_type;//1android 2ios 4微信
	private String equ_client_id;//设备唯一标示  Android:clientId ios:devicetoken
	private String third_token;//第三方登陆token
	private Integer nowLoginType;//当前用户第三方登录类型 (0:手机 1:微信 2:QQ 3:新浪WeiBo)
	private String uid;

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public Integer getNowLoginType() {
		return nowLoginType;
	}

	public void setNowLoginType(Integer nowLoginType) {
		this.nowLoginType = nowLoginType;
	}

	public String getThird_token() {
		return third_token;
	}

	public void setThird_token(String third_token) {
		this.third_token = third_token;
	}
	public void setEqu_type(String equ_type) {
		this.equ_type = equ_type;
	}

	public void setEqu_client_id(String equ_client_id) {
		this.equ_client_id = equ_client_id;
	}

	public String getEqu_type() {
		return equ_type;
	}

	public String getEqu_client_id() {
		return equ_client_id;
	}
	public void setMemb_balance(BigDecimal memb_balance) {
		this.memb_balance = memb_balance;
	}
	public String getInvite_code() {
		return invite_code;
	}

	public void setMemb_password(String memb_password) {
		this.memb_password = memb_password;
	}

	public String getMemb_password() {

		return memb_password;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public void setInvite_code(String invite_code) {
		this.invite_code = invite_code;
	}

	public void setMemb_head_portrait(String memb_head_portrait) {
		this.memb_head_portrait = memb_head_portrait;
	}

	public void setMemb_id(int memb_id) {
		this.memb_id = memb_id;
	}

	public void setMemb_phone(String memb_phone) {
		this.memb_phone = memb_phone;
	}



	public void setCode(String code) {
		this.code = code;
	}

	public void setMemb_phone_area(String memb_phone_area) {
		this.memb_phone_area = memb_phone_area;
	}

	public void setMemb_register_month(String memb_register_month) {
		this.memb_register_month = memb_register_month;
	}

	public void setMemb_islock(String memb_islock) {
		this.memb_islock = memb_islock;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public void setMemb_invite_code(String memb_invite_code) {
		this.memb_invite_code = memb_invite_code;
	}

	public int getMemb_id() {
		return memb_id;
	}

	public String getMemb_phone() {
		return memb_phone;
	}

	public String getCode() {
		return code;
	}

	public String getMemb_phone_area() {
		return memb_phone_area;
	}

	public String getMemb_register_month() {
		return memb_register_month;
	}

	public String getMemb_islock() {
		return memb_islock;
	}

	public String getToken() {
		return token;
	}

	public String getMemb_invite_code() {
		return memb_invite_code;
	}

	public String getMemb_head_portrait() {
		return memb_head_portrait;
	}

	public String getMemb_sex() {
		return memb_sex;
	}

	public Timestamp getMemb_birthday() {
		return memb_birthday;
	}

	public String getMemb_name() {
		return memb_name;
	}

	public void setMemb_name(String memb_name) {
		this.memb_name = memb_name;
	}

	public void setMemb_sex(String memb_sex) {
		this.memb_sex = memb_sex;
	}

	public void setMemb_birthday(Timestamp memb_birthday) {
		this.memb_birthday = memb_birthday;
	}
	//	Constraint	详细信息
//	@Null	被注释的元素必须为 null
//	@NotNull	被注释的元素必须不为 null
//	@AssertTrue	被注释的元素必须为 true
//	@AssertFalse	被注释的元素必须为 false
//	@Min(value)	被注释的元素必须是一个数字，其值必须大于等于指定的最小值
//	@Max(value)	被注释的元素必须是一个数字，其值必须小于等于指定的最大值
//	@DecimalMin(value)	被注释的元素必须是一个数字，其值必须大于等于指定的最小值
//	@DecimalMax(value)	被注释的元素必须是一个数字，其值必须小于等于指定的最大值
//	@Size(max, min)	被注释的元素的大小必须在指定的范围内
//	@Digits (integer, fraction)	被注释的元素必须是一个数字，其值必须在可接受的范围内
//	@Past	被注释的元素必须是一个过去的日期
//	@Future	被注释的元素必须是一个将来的日期
//	@Pattern(value)	
//	@NotBlank(message =)   验证字符串非null，且长度必须大于0  
//	@Email  被注释的元素必须是电子邮箱地址  
//	@Length(min=,max=)  被注释的字符串的大小必须在指定的范围内  
//	@NotEmpty   被注释的字符串的必须非空  
//	@Range(min=,max=,message=)  被注释的元素必须在合适的范围内  

}
